package cn.rkylin.oms.refund.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 平台退款表 oms_ec_refund
 * 
 * @author jipengcheng
 * @created 2017.4.16
 */

public class Refund {
	private String ecRefundId;
	
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
	private Date createTime;

	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
	private Date updateTime;

	private String deleted;

	private String prjId;

	private String prjName;

	private String shopId;

	private String shopName;

	private String ecRefundCode;

	private String ecTradeCode;

	private String shopAccount;

	private String buyerNick;

	private BigDecimal refundFee;

	private String refundStatus;

	private String refundReason;

	private String ecTradeStus;

	private String hasGoodReturn;

	private String goodStus;

	private String lgstName;

	private String lgstNo;

	private String refundAddress;

	private String shopType;

	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
	private Date refundCreateTime;

	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
	private Date refundTimeout;

	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
	private Date refundTime;

	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
	private Date closeTime;

	private String erpStatus;

	private String refundPhase;

	private String errDesc;

	private String parentRefundId;

	private String splitStatus;

	private String refundDesc;
	
	public String getRefundDesc() {
        return refundDesc;
    }

    public void setRefundDesc(String refundDesc) {
        this.refundDesc = refundDesc;
    }

    public String getEcRefundId() {
		return ecRefundId;
	}

	public void setEcRefundId(String ecRefundId) {
		this.ecRefundId = ecRefundId == null ? null : ecRefundId.trim();
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public String getDeleted() {
		return deleted;
	}

	public void setDeleted(String deleted) {
		this.deleted = deleted == null ? null : deleted.trim();
	}

	public String getPrjId() {
		return prjId;
	}

	public void setPrjId(String prjId) {
		this.prjId = prjId == null ? null : prjId.trim();
	}

	public String getPrjName() {
		return prjName;
	}

	public void setPrjName(String prjName) {
		this.prjName = prjName == null ? null : prjName.trim();
	}

	public String getShopId() {
		return shopId;
	}

	public void setShopId(String shopId) {
		this.shopId = shopId == null ? null : shopId.trim();
	}

	public String getShopName() {
		return shopName;
	}

	public void setShopName(String shopName) {
		this.shopName = shopName == null ? null : shopName.trim();
	}

	public String getEcRefundCode() {
		return ecRefundCode;
	}

	public void setEcRefundCode(String ecRefundCode) {
		this.ecRefundCode = ecRefundCode == null ? null : ecRefundCode.trim();
	}

	public String getEcTradeCode() {
		return ecTradeCode!=null?ecTradeCode.split("-")[0]:null;
	}

	public void setEcTradeCode(String ecTradeCode) {
		this.ecTradeCode = ecTradeCode == null ? null : ecTradeCode.trim();
	}

	public String getShopAccount() {
		return shopAccount;
	}

	public void setShopAccount(String shopAccount) {
		this.shopAccount = shopAccount == null ? null : shopAccount.trim();
	}

	public String getBuyerNick() {
		return buyerNick;
	}

	public void setBuyerNick(String buyerNick) {
		this.buyerNick = buyerNick == null ? null : buyerNick.trim();
	}

	public BigDecimal getRefundFee() {
		return refundFee;
	}

	public void setRefundFee(BigDecimal refundFee) {
		this.refundFee = refundFee;
	}

	public String getRefundStatus() {
		return refundStatus;
	}

	public void setRefundStatus(String refundStatus) {
		this.refundStatus = refundStatus == null ? null : refundStatus.trim();
	}

	public String getRefundReason() {
		return refundReason;
	}

	public void setRefundReason(String refundReason) {
		this.refundReason = refundReason == null ? null : refundReason.trim();
	}

	public String getEcTradeStus() {
		return ecTradeStus;
	}

	public void setEcTradeStus(String ecTradeStus) {
		this.ecTradeStus = ecTradeStus == null ? null : ecTradeStus.trim();
	}

	public String getHasGoodReturn() {
		return hasGoodReturn;
	}

	public void setHasGoodReturn(String hasGoodReturn) {
		this.hasGoodReturn = hasGoodReturn == null ? null : hasGoodReturn.trim();
	}

	public String getGoodStus() {
		return goodStus;
	}

	public void setGoodStus(String goodStus) {
		this.goodStus = goodStus == null ? null : goodStus.trim();
	}

	public String getLgstName() {
		return lgstName;
	}

	public void setLgstName(String lgstName) {
		this.lgstName = lgstName == null ? null : lgstName.trim();
	}

	public String getLgstNo() {
		return lgstNo;
	}

	public void setLgstNo(String lgstNo) {
		this.lgstNo = lgstNo == null ? null : lgstNo.trim();
	}

	public String getRefundAddress() {
		return refundAddress;
	}

	public void setRefundAddress(String refundAddress) {
		this.refundAddress = refundAddress == null ? null : refundAddress.trim();
	}

	public String getShopType() {
		return shopType;
	}

	public void setShopType(String shopType) {
		this.shopType = shopType == null ? null : shopType.trim();
	}

	public Date getRefundCreateTime() {
		return refundCreateTime;
	}

	public void setRefundCreateTime(Date refundCreateTime) {
		this.refundCreateTime = refundCreateTime;
	}

	public Date getRefundTimeout() {
		return refundTimeout;
	}

	public void setRefundTimeout(Date refundTimeout) {
		this.refundTimeout = refundTimeout;
	}

	public Date getRefundTime() {
		return refundTime;
	}

	public void setRefundTime(Date refundTime) {
		this.refundTime = refundTime;
	}

	public Date getCloseTime() {
		return closeTime;
	}

	public void setCloseTime(Date closeTime) {
		this.closeTime = closeTime;
	}

	public String getErpStatus() {
		return erpStatus;
	}

	public void setErpStatus(String erpStatus) {
		this.erpStatus = erpStatus == null ? null : erpStatus.trim();
	}

	public String getRefundPhase() {
		return refundPhase;
	}

	public void setRefundPhase(String refundPhase) {
		this.refundPhase = refundPhase == null ? null : refundPhase.trim();
	}

	public String getErrDesc() {
		return errDesc;
	}

	public void setErrDesc(String errDesc) {
		this.errDesc = errDesc == null ? null : errDesc.trim();
	}

	public String getParentRefundId() {
		return parentRefundId;
	}

	public void setParentRefundId(String parentRefundId) {
		this.parentRefundId = parentRefundId == null ? null : parentRefundId.trim();
	}

	public String getSplitStatus() {
		return splitStatus;
	}

	public void setSplitStatus(String splitStatus) {
		this.splitStatus = splitStatus == null ? null : splitStatus.trim();
	}
}